﻿using Newtonsoft.Json;
using System.Runtime.CompilerServices;

namespace T.S.BaseData.Api.Exit
{
    public static class ExitHetp
    {

        public static string Tostirng<T> (this T str) {
            return JsonConvert.SerializeObject(str);
        }

        public static T TolistData<T>(this string str)
        {
            return JsonConvert.DeserializeObject<T>(str);
        }

    }
}
